﻿using B.Rabbit.DataBase.Domain;
using B.Rabbit.DataBase.Domain.Login;
using Microsoft.EntityFrameworkCore;

namespace B.Rabbit.DataBase.Infrastructure
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }

        /// <summary>
        /// 账号实体
        /// </summary>
        public DbSet<AccountModel> AccountModels { get; set; }
        /// <summary>
        /// 角色实体
        /// </summary>
        public DbSet<RoleModel> RoleModels { get; set; }
        public DbSet<TraceabilityModel> TraceabilityModels { get; set; }
        public DbSet<BreedingModel>  BreedingModels { get; set; }
        public DbSet<SlaughterModel> SlaughterModels { get; set; }
        public DbSet<ImageModel> ImageModels { get; set; }
        public DbSet<EnterpriseModel>  EnterpriseModels { get; set; }
        public DbSet<DeepProcessingModel> DeepProcessingModels { get; set; }
        public DbSet<HealthCareModel> HealthCareModels { get; set; }
        public DbSet<LogModel> LogModels { get; set; }
    }
}
